home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-68k-src / machines / amiga68k / libsrc / amigalib / make_autolib.script < prev    next >
AmigaDOS Script File  |  1999-01-01  |  2KB  |  77 lines

  1. .key -sd/S
  2.  
  3. if "<-sd>" EQ ""
  4.   set lbmodel large data
  5.   set alibnam auto.lib
  6.   set vcflags ""
  7. else
  8.   set lbmodel small data
  9.   set alibnam autos.lib
  10.   set vcflags -sd
  11. endif
  12.  
  13. echo "Checking for required commands. Stopping if missing.*N"
  14.  
  15. failat 5
  16.   echo noline "which    : "
  17.     which which            ;stop if missing. :-)
  18.   echo noline "copy     : "
  19.     which copy
  20.   echo noline "delete   : "
  21.     which delete
  22.   echo noline "join     : "
  23.     which join
  24.   echo noline "genauto  : "
  25.     which genauto
  26.   echo noline "vc       : "
  27.     which vc
  28. failat 21
  29.  
  30. echo "*NCompiling $alibnam with $lbmodel model. This may take some time..."
  31. cd T:
  32. delete $alibnam #?.(c|o) quiet > nil:
  33.  
  34. echo "*NProcessing FDs..."
  35. spat genauto fd:(a(migaguide|sl)|b(att(clock|mem)|ullet)|c(ardres|o(lorwheel|mmodities|nsole)))#?.fd
  36. spat genauto fd:(d(atatypes|isk(font|%)|tclass)|expansion|g(adtools|raphics))#?.fd
  37. spat genauto fd:(i(con|ffparse|n(put|tuition))|keymap|l(ayers|o(cale|wlevel)))#?.fd
  38. spat genauto fd:(m(ath(ffp|ieee(doub(bas|trans)|sing(bas|trans))|trans)|isc))#?.fd
  39. spat genauto fd:(nonvolatile|potgo|r(amdrive|e(altime|xxsyslib))|t(imer|ranslator)|utility|wb)#?.fd
  40.  
  41. echo "*NCompiling..."
  42.   vc $vcflags -c #?.c
  43.  
  44. echo "*NJoining everything together..."
  45.   join #?.o to $alibnam
  46.  
  47. echo "*NCleaning up..."
  48.   delete #?.(c|o) quiet
  49.  
  50. unset vcflags
  51. unset lbmodel
  52.  
  53. set instto T:
  54.  
  55. which >nil: ask
  56. if not warn
  57.   ask "*NInstall $alibnam to vlibm68k: (y/n)?"
  58.   if warn
  59.     set instto vlibm68k:
  60.     failat 21
  61.     copy >nil: $alibnam $instto
  62.     if not fail
  63.       delete $alibnam quiet
  64.     endif
  65.     failat 20
  66.   endif
  67. endif
  68.  
  69. if exists ${instto}${alibnam}
  70.   echo "*N*N...poooh... $alibnam can be found in ${instto}."
  71. else
  72.   echo "*N*NInstallation error!"
  73. endif
  74.  
  75. unset instto
  76. unset alibnam
  77.